﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Camc.Quality.Bom.Dto
{
   public class BomParentTreeDto
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 层级
        /// </summary>
        public int LevelNum { get; set; } = 1;
        /// <summary>
        /// 父级id
        /// </summary>
        public Guid ParentId { get; set; }
        /// <summary>
        /// 物料id
        /// </summary>
        public Guid MaterialId { get; set; }
        /// <summary>
        /// children 
        /// </summary>
        public List<BomParentTreeDto> children { get; set; } = new List<BomParentTreeDto>();
    }
    public class BomParentTreeDtoLis {
        public Guid Id { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 层级
        /// </summary>
        public int LevelNum { get; set; } = 1;
        /// <summary>
        /// 父级id
        /// </summary>
        public Guid ParentId { get; set; }
        /// <summary>
        /// 物料id
        /// </summary>
        public Guid MaterialId { get; set; }
    }

}
